package com.wisdytech.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Gemini
 * com.wisdytech.cloud.ServiceApplication
 *
 * @author hailin.zhl
 * @date 2018/10/23
 */
@SpringBootApplication
@EnableEurekaClient
@RestController
public class ServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run( ServiceApplication.class, args );
    }

    @RequestMapping("/hi")
    public String home(@RequestParam(value = "name", defaultValue = "kaga") String name) {
        return "hi " + name ;
    }
}
